const list = [
  {
    id: '1',
    time: '2015',
    nm: '科学',
  },
  {
    id: '2',
    time: '2014',
    nm: '法律',
  },
  {
    id: '3',
    time: '2012',
    nm: '人文',
  },
  {
    id: '4',
    time: '2011',
    nm: '数学',
  },
  {
    id: '5',
    time: '2010',
    nm: '科学',
  },
]

const time = ['2010']
const type = ['科学']
// 2010
const arr = list.filter((item) => {
  if (time.includes(item.time) || type.includes(item.nm)) {
    return item
  }
})

console.log('arr:', arr)
